package com.igorkundovic.guitarstab.pages;

import org.apache.tapestry5.annotations.ApplicationState;
import org.apache.tapestry5.annotations.BeginRender;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.igorkundovic.guitarstab.User;
import com.igorkundovic.guitarstab.service.UserService;

public class UserInfo {

	@Property
	@ApplicationState
	private User user;
	private boolean userExists;
	
	@Inject
	private UserService service;
	
	public Object onActivate(){
		if(userExists){
			return null;
		}
		return Welcome.class;
	}
	@BeginRender
	public void setUp(){
		
	}
}
